package org.jeecg.modules.demo.factory.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 算法厂家管理
 * @Author: jeecg-boot
 * @Date:   2024-12-29
 * @Version: V1.0
 */
@Data
@TableName("tbl_factory_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="算法厂家管理")
public class TblFactoryInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private java.lang.String id;
	/**创建人*/
    @Schema(description = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private java.lang.String sysOrgCode;
	/**厂家名称*/
	@Excel(name = "厂家名称", width = 15)
    @Schema(description = "厂家名称")
    private java.lang.String factoryName;
	/**厂家编码*/
	@Excel(name = "厂家编码", width = 15)
    @Schema(description = "厂家编码")
    private java.lang.String factoryCode;
	/**厂家状态*/
	@Excel(name = "厂家状态", width = 15, dicCode = "valid_status")
	@Dict(dicCode = "valid_status")
    @Schema(description = "厂家状态")
    private java.lang.String factoryStatus;
	/**厂家联系人名称*/
	@Excel(name = "厂家联系人名称", width = 15)
    @Schema(description = "厂家联系人名称")
    private java.lang.String factoryUserName;
	/**厂家联系人方式*/
	@Excel(name = "厂家联系人方式", width = 15)
    @Schema(description = "厂家联系人方式")
    private java.lang.String factoryPhone;
	/**厂家地区*/
    @Excel(name = "厂家地区", width = 15,exportConvert=true,importConvert = true )
    private java.lang.String factoryArea;

    public String convertisFactoryArea() {
        return SpringContextUtils.getBean(ProvinceCityArea.class).getText(factoryArea);
    }

    public void convertsetFactoryArea(String text) {
        this.factoryArea = SpringContextUtils.getBean(ProvinceCityArea.class).getCode(text);
    }
}
